package com.model;

import java.util.HashSet;
import java.util.Set;

/**
 * Order entity. 
 * @author 0912652
 */

public class Order implements java.io.Serializable {

	// Fields

	private Integer bid;
	private Integer bnum;
	private String pname;
	private String pnum;
	private Integer rnum;
	private Integer way;
	private Float amount;
	private Float pamount;
	private String remark;
	private Set orderdetails = new HashSet(0);

	// Constructors

	/** default constructor */
	public Order() {
	}

	/** minimal constructor */
	public Order(Integer bnum) {
		this.bnum = bnum;
	}

	/** full constructor */
	public Order(Integer bnum, String pname, String pnum, Integer rnum,
			Integer way, Float amount, Float pamount, String remark,
			Set orderdetails) {
		this.bnum = bnum;
		this.pname = pname;
		this.pnum = pnum;
		this.rnum = rnum;
		this.way = way;
		this.amount = amount;
		this.pamount = pamount;
		this.remark = remark;
		this.orderdetails = orderdetails;
	}

	// Property accessors

	public Integer getBid() {
		return this.bid;
	}

	public void setBid(Integer bid) {
		this.bid = bid;
	}

	public Integer getBnum() {
		return this.bnum;
	}

	public void setBnum(Integer bnum) {
		this.bnum = bnum;
	}

	public String getPname() {
		return this.pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public String getPnum() {
		return this.pnum;
	}

	public void setPnum(String pnum) {
		this.pnum = pnum;
	}

	public Integer getRnum() {
		return this.rnum;
	}

	public void setRnum(Integer rnum) {
		this.rnum = rnum;
	}

	public Integer getWay() {
		return this.way;
	}

	public void setWay(Integer way) {
		this.way = way;
	}

	public Float getAmount() {
		return this.amount;
	}

	public void setAmount(Float amount) {
		this.amount = amount;
	}

	public Float getPamount() {
		return this.pamount;
	}

	public void setPamount(Float pamount) {
		this.pamount = pamount;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Set getOrderdetails() {
		return this.orderdetails;
	}

	public void setOrderdetails(Set orderdetails) {
		this.orderdetails = orderdetails;
	}

}